package good.threadlocalDemo;

public class MyThreadUse implements Runnable{
	private MyThreadLocal myl=MyThreadLocal.getIntence(); 
	private int gg=0;
	@Override
	public void run() {
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		for(int i=0;i<100;i++){
			int j=myl.getI();
			System.out.println(j+++"   "+gg++);
		}
		
	}

}
